package p.sunmes.les.util;

import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.g2d.BitmapFont;
import com.badlogic.gdx.scenes.scene2d.Touchable;
import com.badlogic.gdx.scenes.scene2d.ui.Label;
import com.badlogic.gdx.scenes.scene2d.ui.Label.LabelStyle;

import p.sunmes.les.managers.RM;

/**
 * Label Utils
 */
public class LU {

	public static Label getPicNumberLabel(String str, String picFontPath,
			String picFontChars) {
		BitmapFont font = U.createPicFont(picFontPath, picFontChars);
		LabelStyle style = new LabelStyle(font, Color.WHITE);
		Label l = new Label(str, style);
		//stage.addDisposeSign(font);
		return l;
	}

	public static Label getLabelWithBorder(String str) {
		LabelStyle style = new LabelStyle(RM.instance().getFont1(),
				Color.WHITE);
		Label l = new Label(str, style);
		l.setTouchable(Touchable.disabled);
		return l;
	}

	public static Label getLabel(String str) {
		LabelStyle style = new LabelStyle(RM.instance().getFont2(),
				Color.WHITE);
		Label l = new Label(str, style);
		l.setTouchable(Touchable.disabled);
		return l;
	}

}
